/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Dentist Provider Codes</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S20322 (C-0-T19465-S20318-S20322-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getDentistProviderCodes()
 * @model extendedMetaData="name='DentistProviderCodes'"
 * @generated
 */
public enum DentistProviderCodes implements Enumerator {
	/**
	 * The '<em><b>122300000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_122300000X_VALUE
	 * @generated
	 * @ordered
	 */
	_122300000X(0, "_122300000X", "122300000X"),

	/**
	 * The '<em><b>1223D0001X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_1223D0001X_VALUE
	 * @generated
	 * @ordered
	 */
	_1223D0001X(1, "_1223D0001X", "1223D0001X"),

	/**
	 * The '<em><b>1223E0200X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_1223E0200X_VALUE
	 * @generated
	 * @ordered
	 */
	_1223E0200X(2, "_1223E0200X", "1223E0200X"),

	/**
	 * The '<em><b>1223G0001X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_1223G0001X_VALUE
	 * @generated
	 * @ordered
	 */
	_1223G0001X(3, "_1223G0001X", "1223G0001X"),

	/**
	 * The '<em><b>1223P0106X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_1223P0106X_VALUE
	 * @generated
	 * @ordered
	 */
	_1223P0106X(4, "_1223P0106X", "1223P0106X"),

	/**
	 * The '<em><b>1223X0008X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_1223X0008X_VALUE
	 * @generated
	 * @ordered
	 */
	_1223X0008X(5, "_1223X0008X", "1223X0008X"),

	/**
	 * The '<em><b>1223S0112X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_1223S0112X_VALUE
	 * @generated
	 * @ordered
	 */
	_1223S0112X(6, "_1223S0112X", "1223S0112X"),

	/**
	 * The '<em><b>1223X0400X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_1223X0400X_VALUE
	 * @generated
	 * @ordered
	 */
	_1223X0400X(7, "_1223X0400X", "1223X0400X"),

	/**
	 * The '<em><b>1223P0221X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_1223P0221X_VALUE
	 * @generated
	 * @ordered
	 */
	_1223P0221X(8, "_1223P0221X", "1223P0221X"),

	/**
	 * The '<em><b>1223P0300X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_1223P0300X_VALUE
	 * @generated
	 * @ordered
	 */
	_1223P0300X(9, "_1223P0300X", "1223P0300X"),

	/**
	 * The '<em><b>1223P0700X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_1223P0700X_VALUE
	 * @generated
	 * @ordered
	 */
	_1223P0700X(10, "_1223P0700X", "1223P0700X");

	/**
	 * The '<em><b>122300000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>122300000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_122300000X
	 * @model literal="122300000X"
	 * @generated
	 * @ordered
	 */
	public static final int _122300000X_VALUE = 0;

	/**
	 * The '<em><b>1223D0001X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>1223D0001X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_1223D0001X
	 * @model literal="1223D0001X"
	 * @generated
	 * @ordered
	 */
	public static final int _1223D0001X_VALUE = 1;

	/**
	 * The '<em><b>1223E0200X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>1223E0200X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_1223E0200X
	 * @model literal="1223E0200X"
	 * @generated
	 * @ordered
	 */
	public static final int _1223E0200X_VALUE = 2;

	/**
	 * The '<em><b>1223G0001X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>1223G0001X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_1223G0001X
	 * @model literal="1223G0001X"
	 * @generated
	 * @ordered
	 */
	public static final int _1223G0001X_VALUE = 3;

	/**
	 * The '<em><b>1223P0106X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>1223P0106X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_1223P0106X
	 * @model literal="1223P0106X"
	 * @generated
	 * @ordered
	 */
	public static final int _1223P0106X_VALUE = 4;

	/**
	 * The '<em><b>1223X0008X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>1223X0008X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_1223X0008X
	 * @model literal="1223X0008X"
	 * @generated
	 * @ordered
	 */
	public static final int _1223X0008X_VALUE = 5;

	/**
	 * The '<em><b>1223S0112X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>1223S0112X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_1223S0112X
	 * @model literal="1223S0112X"
	 * @generated
	 * @ordered
	 */
	public static final int _1223S0112X_VALUE = 6;

	/**
	 * The '<em><b>1223X0400X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>1223X0400X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_1223X0400X
	 * @model literal="1223X0400X"
	 * @generated
	 * @ordered
	 */
	public static final int _1223X0400X_VALUE = 7;

	/**
	 * The '<em><b>1223P0221X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>1223P0221X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_1223P0221X
	 * @model literal="1223P0221X"
	 * @generated
	 * @ordered
	 */
	public static final int _1223P0221X_VALUE = 8;

	/**
	 * The '<em><b>1223P0300X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>1223P0300X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_1223P0300X
	 * @model literal="1223P0300X"
	 * @generated
	 * @ordered
	 */
	public static final int _1223P0300X_VALUE = 9;

	/**
	 * The '<em><b>1223P0700X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>1223P0700X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_1223P0700X
	 * @model literal="1223P0700X"
	 * @generated
	 * @ordered
	 */
	public static final int _1223P0700X_VALUE = 10;

	/**
	 * An array of all the '<em><b>Dentist Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final DentistProviderCodes[] VALUES_ARRAY =
		new DentistProviderCodes[] {
			_122300000X,
			_1223D0001X,
			_1223E0200X,
			_1223G0001X,
			_1223P0106X,
			_1223X0008X,
			_1223S0112X,
			_1223X0400X,
			_1223P0221X,
			_1223P0300X,
			_1223P0700X,
		};

	/**
	 * A public read-only list of all the '<em><b>Dentist Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<DentistProviderCodes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Dentist Provider Codes</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static DentistProviderCodes get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			DentistProviderCodes result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Dentist Provider Codes</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static DentistProviderCodes getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			DentistProviderCodes result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Dentist Provider Codes</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static DentistProviderCodes get(int value) {
		switch (value) {
			case _122300000X_VALUE: return _122300000X;
			case _1223D0001X_VALUE: return _1223D0001X;
			case _1223E0200X_VALUE: return _1223E0200X;
			case _1223G0001X_VALUE: return _1223G0001X;
			case _1223P0106X_VALUE: return _1223P0106X;
			case _1223X0008X_VALUE: return _1223X0008X;
			case _1223S0112X_VALUE: return _1223S0112X;
			case _1223X0400X_VALUE: return _1223X0400X;
			case _1223P0221X_VALUE: return _1223P0221X;
			case _1223P0300X_VALUE: return _1223P0300X;
			case _1223P0700X_VALUE: return _1223P0700X;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private DentistProviderCodes(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //DentistProviderCodes
